let defaultState = {
    rankList: []
}

const reducer = (state = defaultState, action) => {
    switch (action.type) {
        case 'CHANGE_RANKLIST':
            // console.log(action.data)
            return {
                ...state,
                rankList: action.data
            }
    }
    return state
}

export default reducer